x86/setup: Ignore early boot parameters like no-real-mode
authorTrammell Hudson <hudson@trmm.net>
Wed, 12 Aug 2020 17:42:48 +0000 (17:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 13 Aug 2020 11:42:24 +0000 (12:42 +0100)
commite44d986084760929e32bd4f5456677d370206d7f
tree58d37409df1ba76161fc60c5f3db887d767a3188
parent47b0bf14c09ff6d365b5641e7a497bf83f82c8c0
x86/setup: Ignore early boot parameters like no-real-mode

There are parameters in xen/arch/x86/boot/cmdline.c that
are only used early in the boot process, so handlers are
necessary to avoid an "Unknown command line option" in
dmesg.

This also updates ignore_param() to generate a temporary
variable name so that the macro can be used more than once
per file.

Signed-off-by: Trammell hudson <hudson@trmm.net>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
[Leave note to stop TEMP_NAME() finding more general use]
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/setup.c
xen/include/xen/param.h